package net.neptech.model.workflow;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @Author Saya
 * @Date 2025/8/21 17:22
 * @Description TODO
 **/

@Data
@Entity
@Table(name = "node_data")
@TableName("node_data")
public class NodeData {

    @TableField("id")
    @Id
    @TableId

    @GeneratedValue(strategy = GenerationType.UUID)
    private String id;
    /**
     * 流程id
     */
    @TableField("flow_id")
    private String flowId;

    /**
     * 表单数据
     */
    @TableField("data")
    private String data;
    @TableField("node_id")
    private String nodeId;
    /**
     * 逻辑删除字段
     */
    @TableField("deleted")
    @Column(name = "deleted")
    private Boolean deleted;
    /**
     * 创建时间
     */
    @TableField("create_time")
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    @Column(name = "update_time")
    private Date updateTime;
}
